//
//  ScoreExplainViewController.m
//  1gene
//
//  Created by 1jiyin on 16/3/21.
//  Copyright © 2016年 1jiyin. All rights reserved.
//
//***********积分说明***********
#import "ScoreExplainViewController.h"

@interface ScoreExplainViewController ()
@property(nonatomic,copy)UIScrollView *myScrollView;
@end

@implementation ScoreExplainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor whiteColor];
    [self createNavigation];
    [self createUI];
    // Do any additional setup after loading the view.
}
-(void)createUI
{
    _myScrollView=[[UIScrollView alloc]initWithFrame:self.view.bounds];
    _myScrollView.showsVerticalScrollIndicator=NO;
    _myScrollView.bounces = NO;
    [self.view addSubview:_myScrollView];
    
    
    
    //获取积分
    UILabel *getScoreLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 0, self.view.frame.size.width-10, 30)];
    getScoreLab.text=@"获取积分";
    getScoreLab.font=[UIFont systemFontOfSize:20];
    getScoreLab.textColor=[UIColor redColor];
    [_myScrollView addSubview:getScoreLab];
    //划线
    UIView *line1=[[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(getScoreLab.frame), self.view.frame.size.width, 2)];
    line1.backgroundColor=[UIColor colorWithRed:58/255.0 green:177/255.0 blue:208/255.0 alpha:1];
    [_myScrollView addSubview:line1];
    
    //小圆圈
    UIImageView *imgView1=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(line1.frame)+5+5+5/2.0, 10, 10)];
    imgView1.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView1];
    
    //说明1
    UILabel *lab1=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line1.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab1.text=@"1、每日签到:+1分,连续签到1周奖励3分,连续签到1月奖10分,连续签到3个月奖50分";
    lab1.numberOfLines=0;
    lab1.font=[UIFont systemFontOfSize:15];
    lab1.textColor=[UIColor blackColor];
    lab1.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line1.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab1 boundingRectWithSize:CGSizeMake(lab1.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab1];
    imgView1.frame=CGRectMake(15, 5+lab1.frame.origin.y, 10, 10);
    
    //小圆圈
    UIImageView *imgView2=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab1.frame)+5/2.0+5, 10, 10)];
    imgView2.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView2];
    //说明2
    UILabel *lab2=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab1.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab2.text=@"2、个人信息完善:完善度50% +5分,完善度100% +10分";
    lab2.numberOfLines=0;
    lab2.font=[UIFont systemFontOfSize:15];
    lab2.textColor=[UIColor blackColor];
    lab2.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab1.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab2 boundingRectWithSize:CGSizeMake(lab2.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab2];
    imgView2.frame=CGRectMake(15, 5+lab2.frame.origin.y, 10, 10);
    
    //小圆圈
    UIImageView *imgView3=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab2.frame)+5/2.0+5, 10, 10)];
    imgView3.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView3];
    //说明3
    UILabel *lab3=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab3.text=@"3、分享到微信朋友圈、QQ空间或者新浪微博";
    lab3.numberOfLines=0;
    lab3.font=[UIFont systemFontOfSize:15];
    lab3.textColor=[UIColor blackColor];
    lab3.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab3 boundingRectWithSize:CGSizeMake(lab3.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab3];
    imgView3.frame=CGRectMake(15, 5+lab3.frame.origin.y, 10, 10);
    
    ////31
    UILabel *minLab1=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(lab3.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), 15)];
    minLab1.text=@"1)单个检测项目介绍:+1分";
    minLab1.numberOfLines=0;
    minLab1.font=[UIFont systemFontOfSize:13];
    minLab1.textColor=[UIColor blackColor];
    minLab1.frame=CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(lab3.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), [minLab1 boundingRectWithSize:CGSizeMake(minLab1.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab1];
    
    ////32
    UILabel *minLab2=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(minLab1.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), 15)];
    minLab2.text=@"2)活动资讯/产品包介绍:+2分";
    minLab2.numberOfLines=0;
    minLab2.font=[UIFont systemFontOfSize:13];
    minLab2.textColor=[UIColor blackColor];
    minLab2.frame=CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(minLab1.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), [minLab2 boundingRectWithSize:CGSizeMake(minLab2.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab2];
    
    
    ////33
    UILabel *minLab3=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(minLab2.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), 15)];
    minLab3.text=@"3)基因检测报告分享:+5分";
    minLab3.numberOfLines=0;
    minLab3.font=[UIFont systemFontOfSize:13];
    minLab3.textColor=[UIColor blackColor];
    minLab3.frame=CGRectMake(CGRectGetMaxX(imgView3.frame)+20, CGRectGetMaxY(minLab2.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView3.frame)+20), [minLab3 boundingRectWithSize:CGSizeMake(minLab3.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab3];
    
    
    
    //小圆圈4
    UIImageView *imgView4=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(minLab3.frame)+5, 10, 10)];
    imgView4.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView4];
    //说明4
    UILabel *lab4=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(minLab3.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab4.text=@"4、产品体验文章发表:+(2~10）分,将使用产品后的感想撰写并发表在知乎、天涯、百度贴吧等热门论坛上,然后截图发给我们,我们将视情况给予至少2分,最高10的奖励";
    lab4.numberOfLines=0;
    lab4.font=[UIFont systemFontOfSize:15];
    lab4.textColor=[UIColor blackColor];
    lab4.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(minLab3.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab4 boundingRectWithSize:CGSizeMake(lab4.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab4];
    imgView4.frame=CGRectMake(15, 5+lab4.frame.origin.y, 10, 10);
    
    
    //小圆圈5
    UIImageView *imgView5=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab4.frame)+5/2.0+5, 10, 10)];
    imgView5.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView5];
    //说明5
    UILabel *lab5=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab5.text=@"5、APP贴吧发帖或评论:";
    lab5.numberOfLines=0;
    lab5.font=[UIFont systemFontOfSize:15];
    lab5.textColor=[UIColor blackColor];
    lab5.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab5 boundingRectWithSize:CGSizeMake(lab5.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab5];
    imgView5.frame=CGRectMake(15, 5+lab5.frame.origin.y, 10, 10);

    ////51
    UILabel *minLab51=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(lab5.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
    minLab51.text=@"1)发表评论:+0.2分,一天不超过2分";
    minLab51.numberOfLines=0;
    minLab51.font=[UIFont systemFontOfSize:13];
    minLab51.textColor=[UIColor blackColor];
    minLab51.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(lab5.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab51 boundingRectWithSize:CGSizeMake(minLab51.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab51];
    
    ////52
    UILabel *minLab52=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab51.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
    minLab52.text=@"2)发表评论:+0.2分,一天不超过2分";
    minLab52.numberOfLines=0;
    minLab52.font=[UIFont systemFontOfSize:13];
    minLab52.textColor=[UIColor blackColor];
    minLab52.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab51.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab52 boundingRectWithSize:CGSizeMake(minLab52.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab52];
    
    
    //小圆圈6
    UIImageView *imgView6=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(minLab52.frame)+5, 10, 10)];
    imgView6.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView6];
    //说明5
    UILabel *lab6=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab5.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab6.text=@"6、购买产品：金额=分数*10，例500元=50分";
    lab6.numberOfLines=0;
    lab6.font=[UIFont systemFontOfSize:15];
    lab6.textColor=[UIColor blackColor];
    lab6.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(minLab52.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab6 boundingRectWithSize:CGSizeMake(lab6.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab6];
    imgView6.frame=CGRectMake(15, 5+lab6.frame.origin.y, 10, 10);

    //小圆圈7
    UIImageView *imgView7=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab6.frame)+5, 10, 10)];
    imgView7.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView7];
    //说明7
    UILabel *lab7=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab6.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab7.text=@"7、抽奖,5~60分不等";
    lab7.numberOfLines=0;
    lab7.font=[UIFont systemFontOfSize:15];
    lab7.textColor=[UIColor blackColor];
    lab7.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab6.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab7 boundingRectWithSize:CGSizeMake(lab7.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab7];
    imgView7.frame=CGRectMake(15, 5+lab7.frame.origin.y, 10, 10);
    
    //小圆圈8
    UIImageView *imgView8=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab7.frame)+5, 10, 10)];
    imgView8.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView8];
    //说明7
    UILabel *lab8=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab7.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 15)];
    lab8.text=@"8、参加活动";
    lab8.numberOfLines=0;
    lab8.font=[UIFont systemFontOfSize:15];
    lab8.textColor=[UIColor blackColor];
    lab8.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab7.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab8 boundingRectWithSize:CGSizeMake(lab8.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab8];
    imgView8.frame=CGRectMake(15, 5+lab8.frame.origin.y, 10, 10);
    
    
    
    
    //积分的使用
    UILabel *useScoreLab=[[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(lab8.frame)+15, self.view.frame.size.width-10, 30)];
    useScoreLab.text=@"积分的使用规则";
    useScoreLab.font=[UIFont systemFontOfSize:20];
    useScoreLab.textColor=[UIColor redColor];
    [_myScrollView addSubview:useScoreLab];
    //划线
    UIView *line2=[[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(useScoreLab.frame), self.view.frame.size.width, 2)];
    line2.backgroundColor=[UIColor colorWithRed:58/255.0 green:177/255.0 blue:208/255.0 alpha:1];
    [_myScrollView addSubview:line2];
    
    //小圆圈
    UIImageView *imgView9=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(line2.frame)+5+5+5/2.0, 10, 10)];
    imgView9.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView9];
    
    //说明9
    UILabel *lab9=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab9.text=@"1、每日签到:+1分,连续签到1周奖励3分,连续签到1月奖10分,连续签到3个月奖50分";
    lab9.numberOfLines=0;
    lab9.font=[UIFont systemFontOfSize:15];
    lab9.textColor=[UIColor blackColor];
    lab9.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab9 boundingRectWithSize:CGSizeMake(lab9.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab9];
    imgView9.frame=CGRectMake(15, 5+lab9.frame.origin.y, 10, 10);
    
    //91
    UILabel *minLab91=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(lab9.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), 15)];
    minLab91.text=@"1)60积分=60元代金券,150积分=150代金券";
    minLab91.numberOfLines=0;
    minLab91.font=[UIFont systemFontOfSize:13];
    minLab91.textColor=[UIColor blackColor];
    minLab91.frame=CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(lab9.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), [minLab91 boundingRectWithSize:CGSizeMake(minLab91.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab91];
    
    ////92
    UILabel *minLab92=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(minLab91.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), 15)];
    minLab92.text=@"2)60积分=八折优惠券,150积分=五折优惠券";
    minLab92.numberOfLines=0;
    minLab92.font=[UIFont systemFontOfSize:13];
    minLab92.textColor=[UIColor blackColor];
    minLab92.frame=CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(minLab91.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), [minLab92 boundingRectWithSize:CGSizeMake(minLab92.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab92];
    
    
    ////93
    UILabel *minLab93=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(minLab92.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), 15)];
    minLab93.text=@"说明:代金券和优惠券可用于公司产品购买,但一次只能使用一种";
    minLab93.numberOfLines=0;
    minLab93.font=[UIFont systemFontOfSize:13];
    minLab93.textColor=[UIColor blackColor];
    minLab93.frame=CGRectMake(CGRectGetMaxX(imgView9.frame)+20, CGRectGetMaxY(minLab92.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView9.frame)+20), [minLab93 boundingRectWithSize:CGSizeMake(minLab93.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab93];

    //小圆圈
    UIImageView *imgView10=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(minLab93.frame)+5, 10, 10)];
    imgView10.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView10];
    
    //说明10
    UILabel *lab10=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(minLab93.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab10.text=@"2、兑换抽奖机会,5分一次";
    lab10.numberOfLines=0;
    lab10.font=[UIFont systemFontOfSize:15];
    lab10.textColor=[UIColor blackColor];
    lab10.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(minLab93.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab10 boundingRectWithSize:CGSizeMake(lab10.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab10];
    imgView10.frame=CGRectMake(15, 5+lab10.frame.origin.y, 10, 10);
    
    
    //小圆圈
    UIImageView *imgView11=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab10.frame)+5, 10, 10)];
    imgView11.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView11];
    
    //说明10
    UILabel *lab11=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab10.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab11.text=@"3、兑换产品免费体验机会,积分满300";
    lab11.numberOfLines=0;
    lab11.font=[UIFont systemFontOfSize:15];
    lab11.textColor=[UIColor blackColor];
    lab11.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab10.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab11 boundingRectWithSize:CGSizeMake(lab11.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab11];
    imgView11.frame=CGRectMake(15, 5+lab11.frame.origin.y, 10, 10);

    //小圆圈12
    UIImageView *imgView12=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab11.frame)+5, 10, 10)];
    imgView12.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView12];
    
    //说明12
    UILabel *lab12=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab11.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab12.text=@"4、解码和升级检测结果:解码一项10积分;提前解码一项10积分;升级一项10积分";
    lab12.numberOfLines=0;
    lab12.font=[UIFont systemFontOfSize:15];
    lab12.textColor=[UIColor blackColor];
    lab12.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab11.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab12 boundingRectWithSize:CGSizeMake(lab12.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab12];
    imgView12.frame=CGRectMake(15, 5+lab12.frame.origin.y, 10, 10);
    
    
    //小圆圈13
    UIImageView *imgView13=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab12.frame)+5, 10, 10)];
    imgView13.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView13];
    
    //说明13
    UILabel *lab13=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab12.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab13.text=@"5、提高用户的等级,达到相应积分即可成为APP相应级别会员,享受相应特权";
    lab13.numberOfLines=0;
    lab13.font=[UIFont systemFontOfSize:15];
    lab13.textColor=[UIColor blackColor];
    lab13.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab12.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab13 boundingRectWithSize:CGSizeMake(lab13.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab13];
    imgView13.frame=CGRectMake(15, 5+lab13.frame.origin.y, 10, 10);

    
    
    //131
    UILabel *minLab131=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(lab13.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), 15)];
    minLab131.text=@"1)铜卡会员,积分满500";
    minLab131.numberOfLines=0;
    minLab131.font=[UIFont systemFontOfSize:13];
    minLab131.textColor=[UIColor blackColor];
    minLab131.frame=CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(lab13.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), [minLab131 boundingRectWithSize:CGSizeMake(minLab131.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab131];
    
    ////132
    UILabel *minLab132=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab131.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), 15)];
    minLab132.text=@"2)银卡会员,积分满2000";
    minLab132.numberOfLines=0;
    minLab132.font=[UIFont systemFontOfSize:13];
    minLab132.textColor=[UIColor blackColor];
    minLab132.frame=CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab131.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), [minLab132 boundingRectWithSize:CGSizeMake(minLab132.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab132];
    
    
    ////133
    UILabel *minLab133=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab132.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), 15)];
    minLab133.text=@"3)金卡会员,积分满5000";
    minLab133.numberOfLines=0;
    minLab133.font=[UIFont systemFontOfSize:13];
    minLab133.textColor=[UIColor blackColor];
    minLab133.frame=CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab132.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), [minLab133 boundingRectWithSize:CGSizeMake(minLab133.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab133];
    
    
    ////134
    UILabel *minLab134=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab133.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), 15)];
    minLab134.text=@"4)尊享VIP,积分满10000";
    minLab134.numberOfLines=0;
    minLab134.font=[UIFont systemFontOfSize:13];
    minLab134.textColor=[UIColor blackColor];
    minLab134.frame=CGRectMake(CGRectGetMaxX(imgView13.frame)+20, CGRectGetMaxY(minLab133.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView13.frame)+20), [minLab134 boundingRectWithSize:CGSizeMake(minLab134.frame.size.width, 0)].height);
    [_myScrollView addSubview:minLab134];
    
    
    
    
    
    
    
    //会员特权说明
    UILabel *specialPower=[[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(minLab134.frame)+15, self.view.frame.size.width-10, 30)];
    specialPower.text=@"会员特权说明";
    specialPower.font=[UIFont systemFontOfSize:20];
    specialPower.textColor=[UIColor redColor];
    [_myScrollView addSubview:specialPower];
    //划线
    UIView *line3=[[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(specialPower.frame), self.view.frame.size.width, 2)];
    line3.backgroundColor=[UIColor colorWithRed:58/255.0 green:177/255.0 blue:208/255.0 alpha:1];
    [_myScrollView addSubview:line3];

    
    //小圆圈14
    UIImageView *imgView14=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(line3.frame)+5+5+5/2.0, 10, 10)];
    imgView14.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView14];
    
    //说明14
    UILabel *lab14=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line3.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab14.text=@"1、铜卡会员,享产品购买9折优惠,获得产品体验机会一次（仅限于自己）";
    lab14.numberOfLines=0;
    lab14.font=[UIFont systemFontOfSize:15];
    lab14.textColor=[UIColor blackColor];
    lab14.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(line3.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab14 boundingRectWithSize:CGSizeMake(lab14.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab14];
    imgView14.frame=CGRectMake(15, 5+lab14.frame.origin.y, 10, 10);
    
    //小圆圈15
    UIImageView *imgView15=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab14.frame)+5, 10, 10)];
    imgView15.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView15];
    
    //说明15
    UILabel *lab15=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab14.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab15.text=@"2、银卡会员,享产品购买8.5折优惠,可给予他人免费体验产品机会,获随时免费解码任一大类检测项目权利";
    lab15.numberOfLines=0;
    lab15.font=[UIFont systemFontOfSize:15];
    lab15.textColor=[UIColor blackColor];
    lab15.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab14.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab15 boundingRectWithSize:CGSizeMake(lab15.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab15];
    imgView15.frame=CGRectMake(15, 5+lab15.frame.origin.y, 10, 10);
    
    
    //小圆圈16
    UIImageView *imgView16=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab15.frame)+5, 10, 10)];
    imgView16.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView16];
    
    //说明16
    UILabel *lab16=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab15.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab16.text=@"3、金卡会员,享产品购买8折优惠,可随时免费解码所有产品的检测项目";
    lab16.numberOfLines=0;
    lab16.font=[UIFont systemFontOfSize:15];
    lab16.textColor=[UIColor blackColor];
    lab16.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab15.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab16 boundingRectWithSize:CGSizeMake(lab16.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab16];
    imgView16.frame=CGRectMake(15, 5+lab16.frame.origin.y, 10, 10);
    
    //小圆圈17
    UIImageView *imgView17=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab16.frame)+5, 10, 10)];
    imgView17.image=[UIImage imageNamed:@"signIn_btn6"];
    [_myScrollView addSubview:imgView17];
    
    //说明17
    UILabel *lab17=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab16.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, 40)];
    lab17.text=@"4、尊享VIP会员,享产品购买7.5折优惠,获取免费升级所有以检测产品检测结果的权利";
    lab17.numberOfLines=0;
    lab17.font=[UIFont systemFontOfSize:15];
    lab17.textColor=[UIColor blackColor];
    lab17.frame=CGRectMake(CGRectGetMaxX(imgView1.frame)+2, CGRectGetMaxY(lab16.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView1.frame)-2, [lab17 boundingRectWithSize:CGSizeMake(lab17.frame.size.width, 0)].height);
    [_myScrollView addSubview:lab17];
    imgView17.frame=CGRectMake(15, 5+lab17.frame.origin.y, 10, 10);
    
    
    _myScrollView.contentSize=CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(lab17.frame)+10);
    
    
//
//    //小圆圈
//    UIImageView *imgView4=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(line2.frame)+5+5/2.0, 10, 10)];
//    imgView4.image=[UIImage imageNamed:@"signIn_btn6"];
//    [self.view addSubview:imgView4];
//    
//    //说明1
//    UILabel *lab4=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView4.frame)+2, CGRectGetMaxY(line2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView4.frame)-2, 15)];
//    lab4.text=@"1、积分兑换商品优惠券";
//    lab4.numberOfLines=0;
//    lab4.font=[UIFont systemFontOfSize:15];
//    lab4.textColor=[UIColor blackColor];
//    lab4.frame=CGRectMake(CGRectGetMaxX(imgView4.frame)+2, CGRectGetMaxY(line2.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView4.frame)-2, [lab4 boundingRectWithSize:CGSizeMake(lab4.frame.size.width, 0)].height);
//    [self.view addSubview:lab4];
//    imgView4.frame=CGRectMake(15, 5+lab4.frame.origin.y, 10, 10);
//    
//    //小圆圈
//    UIImageView *imgView5=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(lab4.frame)+5/2.0+5, 10, 10)];
//    imgView5.image=[UIImage imageNamed:@"signIn_btn6"];
//    [self.view addSubview:imgView5];
//    //说明2
//    UILabel *lab5=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+2, CGRectGetMaxY(lab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView5.frame)-2, 15)];
//    lab5.text=@"2、基因检测打折扣";
//    lab5.numberOfLines=0;
//    lab5.font=[UIFont systemFontOfSize:15];
//    lab5.textColor=[UIColor blackColor];
//    lab5.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+2, CGRectGetMaxY(lab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView5.frame)-2, [lab5 boundingRectWithSize:CGSizeMake(lab5.frame.size.width, 0)].height);
//    [self.view addSubview:lab5];
//    imgView5.frame=CGRectMake(15, 5+lab5.frame.origin.y, 10, 10);
//    
//    //打折说明1
//    UILabel *minLab1=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(lab5.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
//    minLab1.text=@"1)200积分成为普通会员,购买产品打9折";
//    minLab1.numberOfLines=0;
//    minLab1.font=[UIFont systemFontOfSize:13];
//    minLab1.textColor=[UIColor blackColor];
//    minLab1.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(lab5.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab1 boundingRectWithSize:CGSizeMake(minLab1.frame.size.width, 0)].height);
//    [self.view addSubview:minLab1];
//    
//    //打折说明2
//    UILabel *minLab2=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab1.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
//    minLab2.text=@"2)1000积分成为银卡会员,购买产品打8.5折";
//    minLab2.numberOfLines=0;
//    minLab2.font=[UIFont systemFontOfSize:13];
//    minLab2.textColor=[UIColor blackColor];
//    minLab2.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab1.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab2 boundingRectWithSize:CGSizeMake(minLab2.frame.size.width, 0)].height);
//    [self.view addSubview:minLab2];
//    
//    //打折说明3
//    UILabel *minLab3=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab2.frame), self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
//    minLab3.text=@"3)2500积分成为金卡会员,购买产品打8折";
//    minLab3.numberOfLines=0;
//    minLab3.font=[UIFont systemFontOfSize:13];
//    minLab3.textColor=[UIColor blackColor];
//    minLab3.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab2.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab3 boundingRectWithSize:CGSizeMake(minLab3.frame.size.width, 0)].height);
//    [self.view addSubview:minLab3];
//    
//    //打折说明4
//    UILabel *minLab4=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab3.frame), self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), 15)];
//    minLab4.text=@"4)10000积分成为公司尊享VIP,购买产品打6折";
//    minLab4.numberOfLines=0;
//    minLab4.font=[UIFont systemFontOfSize:13];
//    minLab4.textColor=[UIColor blackColor];
//    minLab4.frame=CGRectMake(CGRectGetMaxX(imgView5.frame)+20, CGRectGetMaxY(minLab3.frame)+5, self.view.frame.size.width-(CGRectGetMaxX(imgView5.frame)+20), [minLab4 boundingRectWithSize:CGSizeMake(minLab4.frame.size.width, 0)].height);
//    [self.view addSubview:minLab4];
//    
//    
//    
//    
//    //小圆圈
//    UIImageView *imgView6=[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(minLab4.frame)+5/2.0+5, 10, 10)];
//    imgView6.image=[UIImage imageNamed:@"signIn_btn6"];
//    [self.view addSubview:imgView6];
//    //说明3
//    UILabel *lab6=[[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imgView6.frame)+2, CGRectGetMaxY(minLab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView6.frame)-2, 15)];
//    lab6.text=@"3、抽奖获取积分";
//    lab6.numberOfLines=0;
//    lab6.font=[UIFont systemFontOfSize:15];
//    lab6.textColor=[UIColor blackColor];
//    lab6.frame=CGRectMake(CGRectGetMaxX(imgView6.frame)+2, CGRectGetMaxY(minLab4.frame)+5, self.view.frame.size.width-CGRectGetMaxX(imgView6.frame)-2, [lab6 boundingRectWithSize:CGSizeMake(lab6.frame.size.width, 0)].height);
//    [self.view addSubview:lab6];
//    imgView6.frame=CGRectMake(15, 5+lab6.frame.origin.y, 10, 10);
    
    
}
-(void)createNavigation
{
    self.navigationController.navigationBar.barTintColor=[UIColor colorWithRed:84/255.0 green:199/255.0 blue:222/255.0 alpha:1];
    //返回
    UIButton *leftBtn=[UIButton buttonWithType:UIButtonTypeCustom];
    leftBtn.frame=CGRectMake(0, 0, 25, 25);
    [leftBtn setBackgroundImage:[UIImage imageNamed:@"left_back"] forState:UIControlStateNormal];
    [leftBtn addTarget:self action:@selector(leftBtnClick:) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithCustomView:leftBtn];
    
    //标题
    UILabel *title=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 44)];
    title.text=@"积分说明";
    title.font=[UIFont systemFontOfSize:22];
    title.textAlignment=NSTextAlignmentCenter;
    title.textColor=[UIColor whiteColor];
    self.navigationItem.titleView=title;
   
}
//返回上一页
-(void)leftBtnClick:(UIButton *)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
